package com.kgc.ljp.dao;

import com.kgc.ljp.entity.News;

import java.util.List;

/**
 *
 */
public interface NewsDao {
    List<News> getList();
    //根据id获取信息
    List<News> getListById(int id);
    //更新
    boolean updateNews(News news);
    //删除
    boolean deleteNews(int id);
    //增加
    Boolean addNews(News news);
    //过滤查询
    List<News> selectByInfo(int type,String title);
    //分页
    List<News> getListByLimit(int pageNum,int curPage);
}
